package b.b.h;

import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window.Callback;
import b.b.g.i.a;

/* compiled from: ToolbarWidgetWrapper */
public class g0 implements OnClickListener {
    public final a a;
    public final /* synthetic */ h0 b;

    public g0(h0 h0Var) {
        this.b = h0Var;
        this.a = new a(h0Var.a.getContext(), 0, 16908332, 0, h0Var.i);
    }

    public void onClick(View view) {
        h0 h0Var = this.b;
        Callback callback = h0Var.l;
        if (callback != null && h0Var.m) {
            callback.onMenuItemSelected(0, this.a);
        }
    }
}
